LSL, A language without string replacement

October 8, 2009 · 26 views · 0 comments

LSL, A language without string replacement
taken by : Dedric Mauriac
on Norwegian Forest (96, 57, 26)
blogHUD!

About

One of my biggest head aches with LSL is with string replacement. I do not know of any other language that doesn't offer this capability. This is the function that I would love to see (SVC-1085): string llReplaceString(string haystack, string needle, string replacement); So, llReplaceString("Hello", "ell", "ipp") would result in "Hippo". Without this function, I have the option of finding string indexes, cutting substrings, and concatonating the results. The other option is to use a trick with lists. Lists eat away at memory & time, but use less code. The other problem I have is llUnescapeURL. It doesn't unescape space characters encoded with plus signs (SVC-4900). From Dedric Mauriac via bloghud.com